@extends('front.layout')
@section('title','多瑞吉')
@section('expert','class=current')
@section('content')
    <div class="main">
        <div class="export_info">
            <div class="export_this">
                <div class="title_box">本期嘉宾</div>
                <div class="export_this_body clearfix">
                    <div class="left_export"><img src="{{$expert->image}}" /></div>
                    <div class="right_export">
                        <div class="export_base">
                            <p class="name">{{$expert->name}}</p>
                            <p><b>科室：</b>{{$expert->department}}</p>
                            <p><b>职称：</b>{{$expert->title}}</p>
                        </div>
                        <div class="export_this_intro">
                            <p><span >{!! $expert->introduce !!}</span></p>
                            <div class="export_edu clearfix">
                                <div class="edu_title">接受教育：</div>
                                <div class="edu_info">
                                    <p>{!! $expert->education !!}</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            @if(isset($expert->middle[0]))
                <div class="this_intro">
                    <div class="title_box">本期简介</div>
                    <div class="this_intro_body">
                        <p class="te_2">{!! $expert->middle[0]->info !!}</p>
                    </div>
                </div>
                <div class="other_export">
                    <div class="title_box">其他专家</div>
                    <div class="export_list clearfix" >
                    <?php $sum=0 ?>
                    @foreach($expert->middle[0]->middle as $v)
                        @if($v->id!=$expert->id && $sum<3)
                            <?php $sum++ ?>
                                <div class="export_ship">
                                    <div class="export_ship_img">
                                        <a href="/expert/info/{{$v->id}}"><img src="{{$v->image}}" /></a>
                                    </div>
                                    <div class="export_ship_txt">
                                        <p>专家：{{$v->name}}</p>
                                        <p>职位：{{$v->title}}</p>
                                        <p>科室：{{$v->department}}</p>
                                        <p>医院：{{$v->hospital}}</p>
                                    </div>
                                </div>
                        @endif
                    @endforeach
                    </div>
                </div>
            @endif
        </div>
    </div>
@endsection
